<?php
/**
{
    "promotionConfigId": "INT //优惠券配置id",
    "limitPrice": "DECIMAL //满多少钱可用(元)",
    "discountPrice": "DECIMAL //面值(元)",
    "expire": "DATETIME //可使用时间(在此时间之前)@search",
    "created": "DATETIME //创建时间"
}
 */

class PromotionConfig extends Base
{
    
	private $promotionConfigId= '';//优惠券配置id
	private $limitPrice= "0.0";//满多少钱可用(元)
	private $discountPrice= "0.0";//面值(元)
	private $expire= NULL;//可使用时间(在此时间之前)@search
	private $created= 'CURRENT_TIMESTAMP';//创建时间

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_promotion_config';
    }
    
    public  function key(){
        return 'promotionConfigId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'PromotionConfig';
    }
    
    public  function field()
    {
        return array (  'promotionConfigId' =>   array (    0 => 'INT',    1 => 11,    2 => '优惠券配置id',  ),  'limitPrice' =>   array (    0 => 'DECIMAL',    1 => 15,    2 => '满多少钱可用(元)',  ),  'discountPrice' =>   array (    0 => 'DECIMAL',    1 => 15,    2 => '面值(元)',  ),  'expire' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '可使用时间(在此时间之前)@search',  ),  'created' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '创建时间',  ),);
    }


}